package com.huyaanalysisplatform.service.impl;

import com.huyaanalysisplatform.entity.TMatch;
import com.huyaanalysisplatform.entity.TMatchTime;
import com.huyaanalysisplatform.mapper.TMatchTimeMapper;
import com.huyaanalysisplatform.service.TMatchTimeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Huadi Group 12
 * @since 2021-08-01
 */
@Service
public class TMatchTimeServiceImpl extends ServiceImpl<TMatchTimeMapper, TMatchTime> implements TMatchTimeService {

    @Autowired
    TMatchTimeMapper tMatchTimeMapper;

    @Override
    public Map<String, List<TMatchTime>> rate() {
        List<TMatchTime> tMatchTimes = tMatchTimeMapper.selectAll();
        Map<String,List<TMatchTime>> map = new HashMap<>();
        map.put("tableData", tMatchTimes);
        return map;
    }
}
